package com.example.tool.bean.ddaiexcel;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class WorkspaceListResponse {
    @JsonProperty("workspaces")
    private List<Workspace> workspaces;

    @JsonProperty("nextToken")
    private String nextToken;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Workspace {
        @JsonProperty("workspaceId")
        private String workspaceId;

        @JsonProperty("corpId")
        private String corpId;

        @JsonProperty("rootNodeId")
        private String rootNodeId;

        @JsonProperty("name")
        private String name;

        @JsonProperty("type")
        private String type;

        @JsonProperty("url")
        private String url;

        @JsonProperty("permissionRole")
        private String permissionRole;

        @JsonProperty("createTime")
        private String createTime;

        @JsonProperty("modifiedTime")
        private String modifiedTime;
    }
}